package com.tn.user.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tn
 * @version 1
 * @ClassName GatewayRoutesTestController
 * @description 路由转发测试
 * @date 2020/8/11 11:52
 */
@RequestMapping("gateway")
@RestController
@Api(tags = "路由转发测试")
public class GatewayRoutesTestController {

    @Value("${server.port}")
    private String prot;
    /**
     * gateway路由转发测试
     */
    @GetMapping(value = "test01")
    @ApiOperation(value = "路由转发测试 - test01")
    public Object test01() {
        return "我是来自server-user服务"+prot;
    }

}
